<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>onchange事件</title>
</head>
<body>
    <input type="text" id="shuru">

    <script>
        const shuru = document.getElementById('shuru')
        // 原生的onchange事件只有在input输入框失去焦点的时候才会触发(不是随着输入变化而触发)
        // react的onChange事件是合成
        shuru.addEventListener('change', ()=>{
            console.log('@');
        })
    </script>
</body>
</html>